]> dgit.raspbian.org Git - gnome-shell.git/commit
Use new plugin-modality functionality in Mutter
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 12 Aug 2009 04:22:46 +0000 (00:22 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Wed, 26 Aug 2009 18:07:02 +0000 (14:07 -0400)
commit799f56fe877ca8e66bdf97a702f78e1298aed691
tree684220f71cf04ea707c4bffa2111e851cf780d48
parentaf9ab5dbb665848e42c42e14984b04bed3f821ff
Use new plugin-modality functionality in Mutter

We now have functionality in Mutter to grab the keyboard on behalf
of a plugin. This avoids interactions with the key handling code
in Mutter that could leave the user with an inconsistent state
and no way to get out of it.

src/shell-global.[ch]: Change shell_global_grab_keyboard() and
  shell_global_grab_keyboard() to shell_global_begin_modal()
  shell_global_end_modal() and call mutter_plugin_begin_modal()
  mutter_plugin_end_modal() rather than directly grabbing the
  keyboard.
main.js: Call global.begin_modal/end_modal from Main.startModal()
  and Main.endModal()
altTab.js; Remove call to Main.startModal() - we're letting Mutter
  handle modality for Alt-Tab.
main.js lookingGlass.js overview.js runDialog.js: Rename
  Main.startModal() to Main.beginModal() for consistency with
  naming in mutter and ShellGlobal.

http://bugzilla.gnome.org/show_bug.cgi?id=590686
js/ui/altTab.js
js/ui/lookingGlass.js
js/ui/main.js
js/ui/overview.js
js/ui/runDialog.js
src/shell-global.c
src/shell-global.h